package top.jle.spring.basic.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;


@Setter
@Getter
@ConfigurationProperties(prefix = "jle.spring.web")
public class WebProperties {
    private SensitiveConfig sensitiveConfig=new SensitiveConfig();
    private AuthConfig authConfig = new AuthConfig();
    @Getter
    @Setter
    public static class AuthConfig{
        private boolean enable = true;
        private String tokenHeader = "AUTH-TOKEN";
        private boolean enableSuperToken = false;
        private String superToken = "superToken";
        private String interfaceToken = "top.jle";
        private String secret = "top.jle.jwt.secret";
    }
    @Getter
    @Setter
    public static class SensitiveConfig{
        private boolean enable = true;
        private String switchOnProperty = "mark";
    }

}
